package com.miao.websecurity.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * 系统菜单列表(SysMenu)表实体类
 *
 * @author MiaoWenqing
 * @since 2021-01-31 13:17:35
 */
@SuppressWarnings("serial")
public class SysMenu extends Model<SysMenu> {
    // 菜单id
    @TableId(type = IdType.ASSIGN_ID)
    private String menuId;
    //父菜单id
    private String menuPar;
    //菜单名称
    private String menuName;
    //菜单类型 1 平台 0 商户
    private Boolean menuType;
    //菜单描述
    private String menuDes;
    //菜单图标
    private String menuIcon;
    //菜单路由
    private String menuRouter;


    public String getMenuId() {
        return menuId;
    }

    public void setMenuId(String menuId) {
        this.menuId = menuId;
    }

    public String getMenuPar() {
        return menuPar;
    }

    public void setMenuPar(String menuPar) {
        this.menuPar = menuPar;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public Boolean getMenuType() {
        return menuType;
    }

    public void setMenuType(Boolean menuType) {
        this.menuType = menuType;
    }

    public String getMenuDes() {
        return menuDes;
    }

    public void setMenuDes(String menuDes) {
        this.menuDes = menuDes;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public String getMenuRouter() {
        return menuRouter;
    }

    public void setMenuRouter(String menuRouter) {
        this.menuRouter = menuRouter;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.menuId;
    }
}